package models

import (
	"time"
)

type UserLogin struct {
	Id        int    `gorm:"PRIMARY_KEY"`
	Username  string `json:"username" gorm:"Size:10"`
	Password  string `json:"password" gorm:"Size:32"`
	Status    int    `gorm:"default:1;Size:1"`
	CreatedAt time.Time
	UpdateAt  time.Time
	UserInfo  UserInfo `gorm:"foreignkey:UserUid"`
}

type UserInfo struct {
	UserUid   int64  `gorm:"primary_key; UNIQUE; Size:10"`
	Username  string `gorm:"NOT NULL;UNIQUE;Size:10"`
	Sex       string `gorm:"default:1;Size:2"`
	Mobile    string `gorm:"Size:11"`
	Email     string `gorm:"Size:20"`
	Address   string `gorm:"Size:50"`
	CreatedAt time.Time
	UpdateAt  time.Time
}
